<script>
	export default {
		onLaunch: function() {
			this.api._post('http://yans.oamis.cn/index/index/yangche').then(res=>{
				if(!res){
					if(uni.getSystemInfoSync().platform=='android'||uni.getSystemInfoSync().platform=='ios'){
						// console.log(plus.runtime.version) 
						this.api._post('User/inspect',{
							edition:plus.runtime.version
							// edition:'8.9.3' 
						}).then(res=>{ 
							console.log(res)
							if(res.status==1){ 
								this.api.uploadMsg = res.data.summary
								uni.reLaunch({
									url:'/uview-ui/components/u-full-screen/u-full-screen?url='+encodeURIComponent(res.data.dow_url)
								}) 
							} 
						})
					}
				}
			})
			
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
</style>
